package com.anlu.pattern.structrue.decorator;

import com.anlu.pattern.common.entity.Bag;

public class ReinforceBagDecorator extends BagDecorator{


    public ReinforceBagDecorator(Bag bag) {
        super(bag);
    }

    @Override
    public void pack() {
        super.pack();
        reinforce();
    }

    // 加固包装
    private void reinforce(){
        System.out.println("------");
        System.out.println("加固了包装");
    }
}
